The Dreamweaver JavaScript API > Deprecated functions > dreamweaver.getSelection()

 

dreamweaver.getSelection()

Availability

Dreamweaver 2.0, deprecated in 3.0 in favor of dom.getSelection().

Description

Gets the selection in the current document, expressed as byte offsets into the document's HTML source code.

Arguments

None.

Returns

An array containing two integers. The first integer is the byte offset of the beginning of the selection; the second integer is the byte offset of the end of the selection. If the two numbers are the same, then the current selection is an insertion point.